package com.ruifu.common.feign;

import com.ruifu.common.constant.BizServiceNameConstants;
import com.ruifu.common.feign.factory.RemoteDocServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteProjService", value = BizServiceNameConstants.PROJECT_SERVICE, fallbackFactory = RemoteDocServiceFallbackFactory.class)
public interface RemoteProjService {

    @GetMapping(value = "/pmPtMain/exchange/{sourceId}/{targetId}/{type}")
  Boolean exchange(@PathVariable("sourceId") Integer sourceId,
                   @PathVariable("targetId") Integer targetId,
                   @PathVariable("type") String type
                   /*@RequestHeader(SecurityConstants.FROM) String from*/
                   );

}
